package com.yeyks.activity.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动抽奖记录表
 * </p>
 *
 * @author shuai
 * @since 2019-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ActivityDrawRecordNew对象", description="活动抽奖记录表")
public class ActivityDrawRecordNew implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "记录文本")
    @TableField("result_content")
    private String resultContent;

    @ApiModelProperty(value = "对应活动编号")
    @TableField("activity_code")
    private String activityCode;

    @ApiModelProperty(value = "奖品ID")
    @TableField("prize_id")
    private Integer prizeId;

    @ApiModelProperty(value = "奖品明细ID")
    @TableField("prize_list_id")
    private Integer prizeListId;

    @ApiModelProperty(value = "奖品面值")
    @TableField("prize_price")
    private String prizePrice;

    @ApiModelProperty(value = "奖品名称")
    @TableField("prize_name")
    private String prizeName;

    @ApiModelProperty(value = "类型：1:通用类型  2:兑换码类型(有明细) 3:优惠券 4:红包 99:谢谢参与")
    @TableField("prize_type")
    private Integer prizeType;

    @ApiModelProperty(value = "兑换码")
    @TableField("redeem_code")
    private String redeemCode;

    @ApiModelProperty(value = "兑换截至日期")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty(value = "0：未兑奖  1:已兑奖")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String RESULT_CONTENT = "result_content";

    public static final String ACTIVITY_CODE = "activity_code";

    public static final String PRIZE_ID = "prize_id";

    public static final String PRIZE_LIST_ID = "prize_list_id";

    public static final String PRIZE_PRICE = "prize_price";

    public static final String PRIZE_NAME = "prize_name";

    public static final String PRIZE_TYPE = "prize_type";

    public static final String REDEEM_CODE = "redeem_code";

    public static final String END_TIME = "end_time";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

}
